package cas.ihep.hmss;

import java.util.List;

public class Job {
    public String  jid;
    public List<String> srcPath;
    public String destPath;
    public long enqueueTime;
    public String user;
    String group;
    public int priority;
    public long length;

    int cores;
    public double p1;
    public double p2;
    public double p3;
    public double jobIndex;

    public boolean equals(Object obj){
        if (this==obj){
            return true;
        }else if(obj instanceof Job){
            Job ojob=(Job)obj;
            return jid.equals(ojob.jid);
        }else{
            return false;
        }
    }

    public Job(){
        length=-1;
    }

    public String toString(){
        return "Job "+jid;
    }
}
